<?php
return array(
	//URL模式
	'URL_MODEL' => 2,	
	'URL_CASE_INSENSITIVE'	=>	1,
	'TMPL_TEMPLATE_SUFFIX'  => '.html',
	
	'APP_GROUP_MODE'	=>	1,
	'APP_GROUP_LIST'	=>	'Home,Admin',
	'DEFAULT_GROUP'		=>	'Home',
	'TMPL_PARSE_STRING'  =>array(
		
	),
	//数据库配置
    'DB_TYPE' => 'mysql',
    'DB_HOST' => 'localhost',
    'DB_NAME' => 'wuyi',
    'DB_USER' => 'root',
    'DB_PWD' => '',
    'DB_PORT' => '3306',
    'DB_PREFIX' => 'wtw_',

    'UPLOAD_PATH' => './Uploads/',
    //路由配置
    'URL_ROUTER_ON' => true, //开启路由
    'URL_ROUTE_RULES' => array(
		//'/^Admin|admin$/i' => 'Admin/Index/index',
		'/^public(?:\/(\w+))$/' => 'Home/Public/:1', //公共
		'/^list\/(\d+)$/' => 'Home/List/index?id=:1',//列表
		'/^item\/(\d+)$/' => 'Home/Item/index?id=:1',//内容
		'/^cart$/' => 'Home/Cart/index',//购物车
		'/^order(?:\/(\w+))$/' => 'Home/Order/:1', //订单
		'/^member(?:\/(\w+))$/' => 'Home/Member/:1', //用户中心
    ),
);
?>